.class public abstract Lcom/glympse/platform/common/PlatformBase;
.super Ljava/lang/Object;
.source "PlatformBase.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/glympse/platform/common/PlatformBase$DoUpdateOnMainThread;
    }
.end annotation


# static fields
.field public static final MAX_NICKNAME_LENGTH:I = 0xf

.field public static final MAX_SMS_BYTES:I = 0x8c

.field public static final MAX_SMS_URL_LENGTH:I = 0x20

.field public static final MAX_SMS_UTF16_LENGTH:I = 0x46

.field public static final MAX_SMS_UTF7_LENGTH:I = 0xa0

.field public static final MAX_TWITTER_API_LENGTH:I = 0x8c

.field public static final MAX_TWITTER_SMS_LENGTH:I = 0x8c

.field public static final MAX_TWITTER_URL_LENGTH:I = 0x1c

.field public static final PAD:Ljava/lang/String; = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

.field public static final PROTOCOL_VERSION:Ljava/lang/String; = "0.3"

.field public static final UPDATE_ALL:I = 0x40003e00

.field public static final UPDATE_ARRIVED_AT_DESTINATION:I = 0x8000

.field public static final UPDATE_AVATAR_UPDATED:I = 0x2000

.field public static final UPDATE_BATTERY_STATE:I = 0x4000

.field public static final UPDATE_CREATE_ACCOUNT_FAILED:I = 0x2

.field public static final UPDATE_CREATE_ACCOUNT_SUCCEEDED:I = 0x1

.field public static final UPDATE_FORCE:I = 0x40000000

.field public static final UPDATE_GET_SESSION_FAILED:I = 0x8

.field public static final UPDATE_GET_SESSION_SUCCEEDED:I = 0x4

.field public static final UPDATE_INITIAL_PACKET_RECEIVED:I = 0x100

.field public static final UPDATE_LOCATION:I = 0x200

.field public static final UPDATE_NEW_VERSION_AVAILABLE:I = 0x40

.field public static final UPDATE_NEW_VERSION_REQUIRED:I = 0x80

.field public static final UPDATE_PHONE_SESSION_FAILED:I = 0x20

.field public static final UPDATE_PHONE_SESSION_SUCCEEDED:I = 0x10

.field public static final UPDATE_TICKET_LIST:I = 0x1000

.field public static final UPDATE_USER_LIST:I = 0x400

.field public static final UPDATE_USER_TRAIL:I = 0x800


# instance fields
.field public m_fActive:Z

.field public m_fBatteryForce:Z

.field public m_fBatteryGood:Z

.field public m_fDetectSigninErrors:Z

.field public m_fExternalPower:Z

.field protected m_fInDoUpdate:Z

.field public m_fInitalPacketReceived:Z

.field public m_fSigninCalled:Z

.field public m_lLastSessionTimestamp:J

.field public m_lThreadUI:J

.field public m_listListeners:Lcom/glympse/platform/GVector$GlympseListeners;

.field public m_nBatteryPercent:I

.field public m_nSignInError:I

.field public m_nUpdateFlags:I

.field public m_oConfig:Lcom/glympse/platform/Config;

.field public m_oFavoriteList:Lcom/glympse/platform/common/FavoriteList;

.field public m_oJobQueue:Lcom/glympse/platform/common/JobQueue;

.field public m_oLocManager:Lcom/glympse/platform/LocManager;

.field public m_oMessageList:Lcom/glympse/platform/common/MessageList;

.field public m_oPlaceList:Lcom/glympse/platform/common/PlaceList;

.field public m_oSentTickets:Lcom/glympse/platform/common/SentTicketList;

.field public m_oServerPost:Lcom/glympse/platform/common/ServerPost;

.field public m_oUserList:Lcom/glympse/platform/common/UserList;

.field public m_strSignInError:Ljava/lang/String;


# direct methods
.method protected constructor <init>(Z)V
    .locals 6
    .parameter "fActive"

    .prologue
    const-wide/16 v4, 0x0

    const/4 v3, 0x1

    const/4 v2, 0x0

    const/4 v1, 0x0

    .line 87
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 61
    iput-wide v4, p0, Lcom/glympse/platform/common/PlatformBase;->m_lThreadUI:J

    .line 62
    new-instance v0, Lcom/glympse/platform/GVector$GlympseListeners;

    invoke-direct {v0}, Lcom/glympse/platform/GVector$GlympseListeners;-><init>()V

    iput-object v0, p0, Lcom/glympse/platform/common/PlatformBase;->m_listListeners:Lcom/glympse/platform/GVector$GlympseListeners;

    .line 63
    iput-boolean v2, p0, Lcom/glympse/platform/common/PlatformBase;->m_fSigninCalled:Z

    .line 64
    new-instance v0, Lcom/glympse/platform/Config;

    invoke-direct {v0}, Lcom/glympse/platform/Config;-><init>()V

    iput-object v0, p0, Lcom/glympse/platform/common/PlatformBase;->m_oConfig:Lcom/glympse/platform/Config;

    .line 65
    iput-object v1, p0, Lcom/glympse/platform/common/PlatformBase;->m_oJobQueue:Lcom/glympse/platform/common/JobQueue;

    .line 66
    iput-object v1, p0, Lcom/glympse/platform/common/PlatformBase;->m_oServerPost:Lcom/glympse/platform/common/ServerPost;

    .line 67
    iput-object v1, p0, Lcom/glympse/platform/common/PlatformBase;->m_oLocManager:Lcom/glympse/platform/LocManager;

    .line 68
    iput-object v1, p0, Lcom/glympse/platform/common/PlatformBase;->m_oUserList:Lcom/glympse/platform/common/UserList;

    .line 69
    iput-object v1, p0, Lcom/glympse/platform/common/PlatformBase;->m_oSentTickets:Lcom/glympse/platform/common/SentTicketList;

    .line 70
    iput-object v1, p0, Lcom/glympse/platform/common/PlatformBase;->m_oFavoriteList:Lcom/glympse/platform/common/FavoriteList;

    .line 71
    iput-object v1, p0, Lcom/glympse/platform/common/PlatformBase;->m_oPlaceList:Lcom/glympse/platform/common/PlaceList;

    .line 72
    iput-object v1, p0, Lcom/glympse/platform/common/PlatformBase;->m_oMessageList:Lcom/glympse/platform/common/MessageList;

    .line 73
    iput-wide v4, p0, Lcom/glympse/platform/common/PlatformBase;->m_lLastSessionTimestamp:J

    .line 74
    iput-boolean v2, p0, Lcom/glympse/platform/common/PlatformBase;->m_fInitalPacketReceived:Z

    .line 75
    iput v2, p0, Lcom/glympse/platform/common/PlatformBase;->m_nUpdateFlags:I

    .line 76
    iput-boolean v3, p0, Lcom/glympse/platform/common/PlatformBase;->m_fDetectSigninErrors:Z

    .line 77
    iput-object v1, p0, Lcom/glympse/platform/common/PlatformBase;->m_strSignInError:Ljava/lang/String;

    .line 78
    iput v2, p0, Lcom/glympse/platform/common/PlatformBase;->m_nSignInError:I

    .line 79
    iput-boolean v2, p0, Lcom/glympse/platform/common/PlatformBase;->m_fInDoUpdate:Z

    .line 80
    iput-boolean v2, p0, Lcom/glympse/platform/common/PlatformBase;->m_fActive:Z

    .line 81
    iput-boolean v3, p0, Lcom/glympse/platform/common/PlatformBase;->m_fBatteryGood:Z

    .line 82
    iput-boolean v2, p0, Lcom/glympse/platform/common/PlatformBase;->m_fBatteryForce:Z

    .line 83
    iput-boolean v2, p0, Lcom/glympse/platform/common/PlatformBase;->m_fExternalPower:Z

    .line 84
    const/4 v0, -0x1

    iput v0, p0, Lcom/glympse/platform/common/PlatformBase;->m_nBatteryPercent:I

    .line 89
    const-string v0, "PlatformBase::PlatformBase"

    invoke-static {v0}, Lcom/glympse/platform/common/Helpers;->Log(Ljava/lang/String;)V

    .line 91
    iget-object v0, p0, Lcom/glympse/platform/common/PlatformBase;->m_oConfig:Lcom/glympse/platform/Config;

    invoke-virtual {v0}, Lcom/glympse/platform/Config;->Load()V

    .line 93
    iput-boolean p1, p0, Lcom/glympse/platform/common/PlatformBase;->m_fActive:Z

    .line 95
    invoke-static {}, Lcom/glympse/platform/Platform;->GetThreadId()J

    move-result-wide v0

    iput-wide v0, p0, Lcom/glympse/platform/common/PlatformBase;->m_lThreadUI:J

    .line 96
    return-void
.end method


# virtual methods
.method public AddGlympseListener(Lcom/glympse/platform/common/GlympseListener;)V
    .locals 1
    .parameter "oGlympseListener"

    .prologue
    .line 215
    iget-object v0, p0, Lcom/glympse/platform/common/PlatformBase;->m_listListeners:Lcom/glympse/platform/GVector$GlympseListeners;

    invoke-virtual {v0, p1}, Lcom/glympse/platform/GVector$GlympseListeners;->addElement(Ljava/lang/Object;)V

    .line 216
    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcom/glympse/platform/common/PlatformBase;->DoUpdate(I)V

    .line 217
    return-void
.end method

.method public BuildSigninError()V
    .locals 1

    .prologue
    .line 361
    iget-object v0, p0, Lcom/glympse/platform/common/PlatformBase;->m_oServerPost:Lcom/glympse/platform/common/ServerPost;

    iget v0, v0, Lcom/glympse/platform/common/ServerPost;->m_nLastPostResult:I

    iput v0, p0, Lcom/glympse/platform/common/PlatformBase;->m_nSignInError:I

    .line 363
    iget v0, p0, Lcom/glympse/platform/common/PlatformBase;->m_nUpdateFlags:I

    and-int/lit8 v0, v0, 0x2

    if-eqz v0, :cond_0

    .line 365
    const-string v0, "There was a problem while creating a Glympse account for your phone."

    iput-object v0, p0, Lcom/glympse/platform/common/PlatformBase;->m_strSignInError:Ljava/lang/String;

    .line 375
    :goto_0
    return-void

    .line 367
    :cond_0
    iget v0, p0, Lcom/glympse/platform/common/PlatformBase;->m_nUpdateFlags:I

    and-int/lit8 v0, v0, 0x8

    if-eqz v0, :cond_1

    .line 369
    const-string v0, "There was a problem while establishing a connection to the Glympse server."

    iput-object v0, p0, Lcom/glympse/platform/common/PlatformBase;->m_strSignInError:Ljava/lang/String;

    goto :goto_0

    .line 373
    :cond_1
    const-string v0, "There was a problem while communicating to the Glympse server."

    iput-object v0, p0, Lcom/glympse/platform/common/PlatformBase;->m_strSignInError:Ljava/lang/String;

    goto :goto_0
.end method

.method public CleanMessage(Ljava/lang/String;)Ljava/lang/String;
    .locals 9
    .parameter "strMessage"

    .prologue
    const/16 v8, 0x2e

    .line 737
    new-instance v6, Ljava/lang/StringBuffer;

    invoke-direct {v6}, Ljava/lang/StringBuffer;-><init>()V

    .line 738
    .local v6, strbldCleanMessage:Ljava/lang/StringBuffer;
    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v5

    .local v5, nSrcLen:I
    const/4 v3, 0x0

    .line 741
    .local v3, nDstLen:I
    invoke-static {p1}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v7

    if-nez v7, :cond_2

    .line 743
    const/4 v4, 0x0

    .line 744
    .local v4, nSrc:I
    const/4 v2, 0x0

    .line 745
    .local v2, fInsertSpace:Z
    const/4 v0, 0x0

    .line 748
    .local v0, cLastChar:C
    :goto_0
    if-ge v4, v5, :cond_0

    invoke-virtual {p1, v4}, Ljava/lang/String;->charAt(I)C

    move-result v7

    invoke-static {v7}, Lcom/glympse/platform/common/Helpers;->IsWhitespace(C)Z

    move-result v7

    if-nez v7, :cond_3

    .line 755
    :cond_0
    :goto_1
    if-ge v4, v5, :cond_1

    const/16 v7, 0xa0

    if-lt v3, v7, :cond_4

    .line 788
    :cond_1
    if-lez v3, :cond_2

    if-lt v4, v5, :cond_2

    if-eq v8, v0, :cond_2

    const/16 v7, 0x3f

    if-eq v7, v0, :cond_2

    const/16 v7, 0x21

    if-eq v7, v0, :cond_2

    .line 790
    invoke-virtual {v6, v8}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    .line 791
    add-int/lit8 v3, v3, 0x1

    .line 795
    .end local v0           #cLastChar:C
    .end local v2           #fInsertSpace:Z
    .end local v4           #nSrc:I
    :cond_2
    invoke-virtual {v6}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v7

    return-object v7

    .line 748
    .restart local v0       #cLastChar:C
    .restart local v2       #fInsertSpace:Z
    .restart local v4       #nSrc:I
    :cond_3
    add-int/lit8 v4, v4, 0x1

    goto :goto_0

    .line 757
    :cond_4
    invoke-virtual {p1, v4}, Ljava/lang/String;->charAt(I)C

    move-result v1

    .line 760
    .local v1, cSrc:C
    invoke-static {v1}, Lcom/glympse/platform/common/Helpers;->IsWhitespace(C)Z

    move-result v7

    if-eqz v7, :cond_5

    .line 764
    const/4 v2, 0x1

    .line 755
    :goto_2
    add-int/lit8 v4, v4, 0x1

    goto :goto_1

    .line 771
    :cond_5
    if-eqz v2, :cond_6

    .line 773
    const/16 v7, 0x20

    invoke-virtual {v6, v7}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    .line 774
    add-int/lit8 v3, v3, 0x1

    .line 775
    const/4 v2, 0x0

    .line 779
    :cond_6
    invoke-virtual {v6, v1}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    .line 780
    add-int/lit8 v3, v3, 0x1

    .line 781
    move v0, v1

    goto :goto_2
.end method

.method public DoUpdate(I)V
    .locals 6
    .parameter "nUpdateFlags"

    .prologue
    const/4 v5, 0x0

    .line 296
    invoke-static {}, Lcom/glympse/platform/Platform;->instance()Lcom/glympse/platform/Platform;

    move-result-object v3

    invoke-virtual {v3}, Lcom/glympse/platform/Platform;->IsMainThread()Z

    move-result v3

    if-nez v3, :cond_1

    .line 298
    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "DoUpdateOnMainThread("

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, "): "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-static {}, Lcom/glympse/platform/Platform;->GetThreadId()J

    move-result-wide v4

    invoke-virtual {v3, v4, v5}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, " != "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    iget-wide v4, p0, Lcom/glympse/platform/common/PlatformBase;->m_lThreadUI:J

    invoke-virtual {v3, v4, v5}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v3}, Lcom/glympse/platform/common/Helpers;->Log(Ljava/lang/String;)V

    .line 299
    invoke-static {}, Lcom/glympse/platform/Platform;->instance()Lcom/glympse/platform/Platform;

    move-result-object v3

    new-instance v4, Lcom/glympse/platform/common/PlatformBase$DoUpdateOnMainThread;

    invoke-direct {v4, p0, p1}, Lcom/glympse/platform/common/PlatformBase$DoUpdateOnMainThread;-><init>(Lcom/glympse/platform/common/PlatformBase;I)V

    invoke-virtual {v3, v4}, Lcom/glympse/platform/Platform;->PostToMainThread(Lcom/glympse/platform/GRunnable;)Z

    .line 356
    :cond_0
    :goto_0
    return-void

    .line 304
    :cond_1
    iget v3, p0, Lcom/glympse/platform/common/PlatformBase;->m_nUpdateFlags:I

    or-int/2addr v3, p1

    iput v3, p0, Lcom/glympse/platform/common/PlatformBase;->m_nUpdateFlags:I

    .line 306
    const-string v3, "Platform"

    iget v4, p0, Lcom/glympse/platform/common/PlatformBase;->m_nUpdateFlags:I

    invoke-static {v3, v4}, Lcom/glympse/platform/common/Helpers;->LogUpdateFlags(Ljava/lang/String;I)V

    .line 308
    iget-boolean v3, p0, Lcom/glympse/platform/common/PlatformBase;->m_fInDoUpdate:Z

    if-nez v3, :cond_0

    .line 310
    const/4 v3, 0x1

    iput-boolean v3, p0, Lcom/glympse/platform/common/PlatformBase;->m_fInDoUpdate:Z

    .line 313
    iget v3, p0, Lcom/glympse/platform/common/PlatformBase;->m_nUpdateFlags:I

    and-int/lit16 v3, v3, 0x100

    if-eqz v3, :cond_2

    .line 315
    iput-boolean v5, p0, Lcom/glympse/platform/common/PlatformBase;->m_fDetectSigninErrors:Z

    .line 316
    const/4 v3, 0x0

    iput-object v3, p0, Lcom/glympse/platform/common/PlatformBase;->m_strSignInError:Ljava/lang/String;

    .line 318
    :cond_2
    iget-boolean v3, p0, Lcom/glympse/platform/common/PlatformBase;->m_fDetectSigninErrors:Z

    if-eqz v3, :cond_3

    iget v3, p0, Lcom/glympse/platform/common/PlatformBase;->m_nUpdateFlags:I

    and-int/lit8 v3, v3, 0x2a

    if-eqz v3, :cond_3

    .line 320
    invoke-virtual {p0}, Lcom/glympse/platform/common/PlatformBase;->BuildSigninError()V

    .line 321
    iput-boolean v5, p0, Lcom/glympse/platform/common/PlatformBase;->m_fDetectSigninErrors:Z

    .line 325
    :cond_3
    invoke-static {}, Lcom/glympse/platform/Platform;->instance()Lcom/glympse/platform/Platform;

    move-result-object v3

    iget-object v3, v3, Lcom/glympse/platform/Platform;->m_oUserList:Lcom/glympse/platform/common/UserList;

    invoke-virtual {v3}, Lcom/glympse/platform/common/UserList;->TrimTrails()V

    .line 328
    iget v3, p0, Lcom/glympse/platform/common/PlatformBase;->m_nUpdateFlags:I

    if-eqz v3, :cond_4

    iget-object v3, p0, Lcom/glympse/platform/common/PlatformBase;->m_listListeners:Lcom/glympse/platform/GVector$GlympseListeners;

    invoke-virtual {v3}, Lcom/glympse/platform/GVector$GlympseListeners;->isEmpty()Z

    move-result v3

    if-nez v3, :cond_4

    .line 331
    iget-object v3, p0, Lcom/glympse/platform/common/PlatformBase;->m_oSentTickets:Lcom/glympse/platform/common/SentTicketList;

    invoke-virtual {v3}, Lcom/glympse/platform/common/SentTicketList;->Sort()V

    .line 332
    iget-object v3, p0, Lcom/glympse/platform/common/PlatformBase;->m_oUserList:Lcom/glympse/platform/common/UserList;

    invoke-virtual {v3}, Lcom/glympse/platform/common/UserList;->Sort()V

    .line 335
    iget-object v3, p0, Lcom/glympse/platform/common/PlatformBase;->m_listListeners:Lcom/glympse/platform/GVector$GlympseListeners;

    invoke-virtual {v3}, Lcom/glympse/platform/GVector$GlympseListeners;->elements()Ljava/util/Enumeration;

    move-result-object v1

    .local v1, iter:Ljava/util/Enumeration;
    :goto_1
    invoke-interface {v1}, Ljava/util/Enumeration;->hasMoreElements()Z

    move-result v3

    if-nez v3, :cond_5

    .line 351
    iput v5, p0, Lcom/glympse/platform/common/PlatformBase;->m_nUpdateFlags:I

    .line 354
    .end local v1           #iter:Ljava/util/Enumeration;
    :cond_4
    iput-boolean v5, p0, Lcom/glympse/platform/common/PlatformBase;->m_fInDoUpdate:Z

    goto :goto_0

    .line 337
    .restart local v1       #iter:Ljava/util/Enumeration;
    :cond_5
    invoke-interface {v1}, Ljava/util/Enumeration;->nextElement()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/glympse/platform/common/GlympseListener;

    .line 342
    .local v2, oGlympseListener:Lcom/glympse/platform/common/GlympseListener;
    :try_start_0
    iget v3, p0, Lcom/glympse/platform/common/PlatformBase;->m_nUpdateFlags:I

    invoke-interface {v2, v3}, Lcom/glympse/platform/common/GlympseListener;->DoUpdate(I)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    .line 344
    :catch_0
    move-exception v3

    move-object v0, v3

    .line 346
    .local v0, e:Ljava/lang/Exception;
    invoke-static {v0}, Lcom/glympse/platform/common/Helpers;->Log(Ljava/lang/Throwable;)V

    goto :goto_1
.end method

.method public FormatForFacebookApi(Ljava/lang/String;Ljava/lang/String;[Z)Ljava/lang/String;
    .locals 1
    .parameter "strUrl"
    .parameter "strMessage"
    .parameter "afTruncated"

    .prologue
    .line 727
    invoke-static {p2}, Lcom/glympse/platform/common/Helpers;->SafeStr(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public FormatForFacebookSms(Ljava/lang/String;Ljava/lang/String;[Z)Ljava/lang/String;
    .locals 1
    .parameter "strUrl"
    .parameter "strMessage"
    .parameter "afTruncated"

    .prologue
    .line 720
    invoke-virtual {p0, p1, p2, p3}, Lcom/glympse/platform/common/PlatformBase;->FormatForTwitterSms(Ljava/lang/String;Ljava/lang/String;[Z)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public FormatForSms(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Z)Ljava/lang/String;
    .locals 12
    .parameter "strDisplayName"
    .parameter "strUrl"
    .parameter "strMessage"
    .parameter "afTruncated"

    .prologue
    .line 527
    const/4 v9, 0x0

    const/4 v10, 0x0

    aput-boolean v10, p4, v9

    .line 530
    if-eqz p1, :cond_0

    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v9

    const/16 v10, 0xf

    if-le v9, v10, :cond_0

    .line 532
    const/4 v9, 0x0

    const/16 v10, 0xf

    invoke-static {p1, v9, v10}, Lcom/glympse/platform/common/Helpers;->SubstrEnd(Ljava/lang/String;II)Ljava/lang/String;

    move-result-object p1

    .line 537
    :cond_0
    const/4 v9, 0x1

    new-array v0, v9, [Ljava/lang/String;

    const/4 v9, 0x0

    .line 540
    const-string v10, ""

    aput-object v10, v0, v9

    .line 543
    .local v0, ms_astrTaglines:[Ljava/lang/String;
    invoke-virtual {p0, p3}, Lcom/glympse/platform/common/PlatformBase;->CleanMessage(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    .line 544
    .local v5, strCleanMessage:Ljava/lang/String;
    invoke-virtual {v5}, Ljava/lang/String;->length()I

    move-result v1

    .line 553
    .local v1, nCleanLen:I
    invoke-static {p1}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v9

    if-nez v9, :cond_1

    invoke-static {p1}, Lcom/glympse/platform/Platform;->IsUTF7(Ljava/lang/String;)Z

    move-result v9

    if-nez v9, :cond_3

    :cond_1
    const-string v9, ""

    move-object v8, v9

    .line 556
    .local v8, strUser:Ljava/lang/String;
    :goto_0
    new-instance v9, Ljava/lang/StringBuilder;

    const-string v10, "Click for a Glympse of my location: "

    invoke-direct {v9, v10}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v9, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    .line 559
    .local v6, strCore:Ljava/lang/String;
    invoke-virtual {v8}, Ljava/lang/String;->length()I

    move-result v9

    invoke-virtual {v6}, Ljava/lang/String;->length()I

    move-result v10

    add-int v4, v9, v10

    .line 563
    .local v4, nUserAndCoreLen:I
    const/16 v2, 0xa0

    .local v2, nMaxLength:I
    :goto_1
    if-gtz v2, :cond_4

    .line 611
    :cond_2
    new-instance v9, Ljava/lang/StringBuilder;

    invoke-static {v8}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v10

    invoke-direct {v9, v10}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v9, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    :goto_2
    return-object v9

    .line 553
    .end local v2           #nMaxLength:I
    .end local v4           #nUserAndCoreLen:I
    .end local v6           #strCore:Ljava/lang/String;
    .end local v8           #strUser:Ljava/lang/String;
    :cond_3
    new-instance v9, Ljava/lang/StringBuilder;

    invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v10

    invoke-direct {v9, v10}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v10, " says: "

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    move-object v8, v9

    goto :goto_0

    .line 565
    .restart local v2       #nMaxLength:I
    .restart local v4       #nUserAndCoreLen:I
    .restart local v6       #strCore:Ljava/lang/String;
    .restart local v8       #strUser:Ljava/lang/String;
    :cond_4
    const/4 v7, 0x0

    .line 568
    .local v7, strResult:Ljava/lang/String;
    const/4 v3, 0x0

    .local v3, nTagLine:I
    :goto_3
    array-length v9, v0

    if-lt v3, v9, :cond_7

    .line 581
    :goto_4
    invoke-static {v7}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v9

    if-eqz v9, :cond_5

    .line 583
    const/4 v9, 0x0

    if-lez v1, :cond_b

    const/4 v10, 0x1

    :goto_5
    aput-boolean v10, p4, v9

    .line 588
    if-lez v1, :cond_2

    add-int/lit8 v9, v4, 0xa

    if-gt v9, v2, :cond_2

    .line 590
    new-instance v9, Ljava/lang/StringBuilder;

    invoke-static {v8}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v10

    invoke-direct {v9, v10}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const/4 v10, 0x0

    add-int/lit8 v11, v4, 0x4

    sub-int v11, v2, v11

    invoke-static {v5, v10, v11}, Lcom/glympse/platform/common/Helpers;->SubstrEnd(Ljava/lang/String;II)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, "... "

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    .line 605
    :cond_5
    invoke-virtual {v7}, Ljava/lang/String;->length()I

    move-result v9

    const/16 v10, 0x46

    if-le v9, v10, :cond_6

    invoke-static {v7}, Lcom/glympse/platform/Platform;->IsUTF7(Ljava/lang/String;)Z

    move-result v9

    if-eqz v9, :cond_c

    :cond_6
    move-object v9, v7

    .line 607
    goto :goto_2

    .line 571
    :cond_7
    if-lez v1, :cond_8

    add-int/lit8 v9, v1, 0x1

    :goto_6
    add-int/2addr v9, v4

    aget-object v10, v0, v3

    invoke-virtual {v10}, Ljava/lang/String;->length()I

    move-result v10

    add-int/2addr v9, v10

    if-gt v9, v2, :cond_a

    .line 574
    const/4 v9, 0x0

    const/4 v10, 0x0

    aput-boolean v10, p4, v9

    .line 575
    new-instance v9, Ljava/lang/StringBuilder;

    invoke-static {v8}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v10

    invoke-direct {v9, v10}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v9, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    if-lez v1, :cond_9

    const-string v10, " "

    :goto_7
    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    aget-object v10, v0, v3

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    .line 576
    goto :goto_4

    .line 571
    :cond_8
    const/4 v9, 0x0

    goto :goto_6

    .line 575
    :cond_9
    const-string v10, ""

    goto :goto_7

    .line 568
    :cond_a
    add-int/lit8 v3, v3, 0x1

    goto/16 :goto_3

    .line 583
    :cond_b
    const/4 v10, 0x0

    goto :goto_5

    .line 563
    :cond_c
    add-int/lit8 v2, v2, -0x1

    goto/16 :goto_1
.end method

.method public FormatForTwitterApi(Ljava/lang/String;Ljava/lang/String;[Z)Ljava/lang/String;
    .locals 8
    .parameter "strUrl"
    .parameter "strMessage"
    .parameter "afTruncated"

    .prologue
    const/16 v7, 0x20

    const/16 v6, 0x8c

    const/4 v5, 0x0

    .line 685
    aput-boolean v5, p3, v5

    .line 688
    const-string v3, "http://www."

    const-string v4, "http://"

    invoke-static {p1, v3, v4}, Lcom/glympse/platform/Platform;->StringReplaceFirst(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 690
    invoke-virtual {p0, p2}, Lcom/glympse/platform/common/PlatformBase;->CleanMessage(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 691
    .local v2, strCleanMessage:Ljava/lang/String;
    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v0

    .line 694
    .local v0, nCleanLen:I
    if-lez v0, :cond_1

    .line 696
    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v1

    .line 699
    .local v1, nUrlLen:I
    add-int/lit8 v3, v1, 0x1

    add-int/2addr v3, v0

    if-gt v3, v6, :cond_0

    .line 701
    aput-boolean v5, p3, v5

    .line 702
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3, v7}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    .line 713
    .end local v1           #nUrlLen:I
    :goto_0
    return-object v3

    .line 706
    .restart local v1       #nUrlLen:I
    :cond_0
    add-int/lit8 v3, v1, 0x4

    if-le v6, v3, :cond_1

    .line 708
    const/4 v3, 0x1

    aput-boolean v3, p3, v5

    .line 709
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3, v7}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    move-result-object v3

    add-int/lit8 v4, v1, 0x4

    sub-int v4, v6, v4

    invoke-static {v2, v5, v4}, Lcom/glympse/platform/common/Helpers;->SubstrEnd(Ljava/lang/String;II)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, "..."

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    goto :goto_0

    .end local v1           #nUrlLen:I
    :cond_1
    move-object v3, p1

    .line 713
    goto :goto_0
.end method

.method public FormatForTwitterSms(Ljava/lang/String;Ljava/lang/String;[Z)Ljava/lang/String;
    .locals 10
    .parameter "strUrl"
    .parameter "strMessage"
    .parameter "afTruncated"

    .prologue
    const/16 v9, 0x20

    const/4 v8, 0x1

    const/4 v7, 0x0

    .line 617
    aput-boolean v7, p3, v7

    .line 620
    const-string v5, "http://www."

    const-string v6, "http://"

    invoke-static {p1, v5, v6}, Lcom/glympse/platform/Platform;->StringReplaceFirst(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 622
    invoke-virtual {p0, p2}, Lcom/glympse/platform/common/PlatformBase;->CleanMessage(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 623
    .local v3, strCleanMessage:Ljava/lang/String;
    invoke-virtual {v3}, Ljava/lang/String;->length()I

    move-result v0

    .line 626
    .local v0, nCleanLen:I
    if-lez v0, :cond_0

    .line 628
    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v2

    .line 632
    .local v2, nUrlLen:I
    const/16 v1, 0x8c

    .local v1, nMaxLength:I
    :goto_0
    if-gtz v1, :cond_1

    .end local v1           #nMaxLength:I
    .end local v2           #nUrlLen:I
    :cond_0
    :goto_1
    move-object v5, p1

    .line 679
    :goto_2
    return-object v5

    .line 634
    .restart local v1       #nMaxLength:I
    .restart local v2       #nUrlLen:I
    :cond_1
    const/4 v4, 0x0

    .line 637
    .local v4, strResult:Ljava/lang/String;
    add-int/lit8 v5, v2, 0x1

    add-int/2addr v5, v0

    if-gt v5, v1, :cond_3

    .line 639
    aput-boolean v7, p3, v7

    .line 640
    new-instance v5, Ljava/lang/StringBuilder;

    invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v6

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v5, v9}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    .line 665
    :goto_3
    invoke-virtual {v4}, Ljava/lang/String;->length()I

    move-result v5

    const/16 v6, 0x46

    if-le v5, v6, :cond_2

    invoke-static {v4}, Lcom/glympse/platform/Platform;->IsUTF7(Ljava/lang/String;)Z

    move-result v5

    if-eqz v5, :cond_5

    :cond_2
    move-object v5, v4

    .line 667
    goto :goto_2

    .line 644
    :cond_3
    add-int/lit8 v5, v2, 0x4

    if-le v1, v5, :cond_4

    .line 646
    aput-boolean v8, p3, v7

    .line 647
    new-instance v5, Ljava/lang/StringBuilder;

    invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v6

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v5, v9}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    move-result-object v5

    add-int/lit8 v6, v2, 0x4

    sub-int v6, v1, v6

    invoke-static {v3, v7, v6}, Lcom/glympse/platform/common/Helpers;->SubstrEnd(Ljava/lang/String;II)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, "..."

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    goto :goto_3

    .line 654
    :cond_4
    aput-boolean v8, p3, v7

    goto :goto_1

    .line 672
    :cond_5
    add-int/lit8 v5, v0, 0x1

    add-int/2addr v5, v2

    if-le v1, v5, :cond_6

    .line 674
    add-int/lit8 v5, v0, 0x1

    add-int v1, v5, v2

    .line 632
    :cond_6
    add-int/lit8 v1, v1, -0x1

    goto :goto_0
.end method

.method public IsMainThread()Z
    .locals 4

    .prologue
    .line 182
    invoke-static {}, Lcom/glympse/platform/Platform;->GetThreadId()J

    move-result-wide v0

    iget-wide v2, p0, Lcom/glympse/platform/common/PlatformBase;->m_lThreadUI:J

    cmp-long v0, v0, v2

    if-nez v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public IsSignedIn()Z
    .locals 1

    .prologue
    .line 228
    iget-object v0, p0, Lcom/glympse/platform/common/PlatformBase;->m_oUserList:Lcom/glympse/platform/common/UserList;

    if-nez v0, :cond_0

    const/4 v0, 0x0

    :goto_0
    return v0

    :cond_0
    iget-object v0, p0, Lcom/glympse/platform/common/PlatformBase;->m_oUserList:Lcom/glympse/platform/common/UserList;

    invoke-virtual {v0}, Lcom/glympse/platform/common/UserList;->IsSignedIn()Z

    move-result v0

    goto :goto_0
.end method

.method public IsWatching()Z
    .locals 1

    .prologue
    .line 135
    iget-boolean v0, p0, Lcom/glympse/platform/common/PlatformBase;->m_fActive:Z

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/glympse/platform/common/PlatformBase;->m_oUserList:Lcom/glympse/platform/common/UserList;

    invoke-virtual {v0}, Lcom/glympse/platform/common/UserList;->AnyActive()Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public OkToPost()Z
    .locals 1

    .prologue
    .line 143
    invoke-virtual {p0}, Lcom/glympse/platform/common/PlatformBase;->StartStopLocation()V

    .line 147
    iget-boolean v0, p0, Lcom/glympse/platform/common/PlatformBase;->m_fBatteryGood:Z

    if-nez v0, :cond_0

    iget-boolean v0, p0, Lcom/glympse/platform/common/PlatformBase;->m_fBatteryForce:Z

    if-eqz v0, :cond_2

    :cond_0
    iget-object v0, p0, Lcom/glympse/platform/common/PlatformBase;->m_oSentTickets:Lcom/glympse/platform/common/SentTicketList;

    invoke-virtual {v0}, Lcom/glympse/platform/common/SentTicketList;->AnyActive()Z

    move-result v0

    if-nez v0, :cond_1

    invoke-virtual {p0}, Lcom/glympse/platform/common/PlatformBase;->IsWatching()Z

    move-result v0

    if-eqz v0, :cond_2

    :cond_1
    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_2
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public RemoveGlympseListener(Lcom/glympse/platform/common/GlympseListener;)V
    .locals 1
    .parameter "oGlympseListener"

    .prologue
    .line 222
    iget-object v0, p0, Lcom/glympse/platform/common/PlatformBase;->m_listListeners:Lcom/glympse/platform/GVector$GlympseListeners;

    invoke-virtual {v0, p1}, Lcom/glympse/platform/GVector$GlympseListeners;->removeElement(Ljava/lang/Object;)Z

    .line 223
    return-void
.end method

.method public SendFeedback(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 2
    .parameter "nRating"
    .parameter "strCategory"
    .parameter "strComment"
    .parameter "strEmail"

    .prologue
    .line 426
    iget-object v0, p0, Lcom/glympse/platform/common/PlatformBase;->m_oJobQueue:Lcom/glympse/platform/common/JobQueue;

    new-instance v1, Lcom/glympse/platform/common/ZendeskJob;

    invoke-direct {v1, p1, p2, p3, p4}, Lcom/glympse/platform/common/ZendeskJob;-><init>(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v0, v1}, Lcom/glympse/platform/common/JobQueue;->AddJob(Lcom/glympse/platform/common/JobQueue$Job;)V

    .line 427
    return-void
.end method

.method public SendInviteToRecipient(Lcom/glympse/platform/common/Ticket;Lcom/glympse/platform/common/Recipient;)Z
    .locals 11
    .parameter "oTicket"
    .parameter "oRecipient"

    .prologue
    const/4 v10, 0x5

    const/4 v9, 0x4

    const/4 v8, 0x3

    const/4 v7, 0x1

    const/4 v6, 0x0

    .line 433
    iget-object v3, p2, Lcom/glympse/platform/common/Recipient;->m_strRecipientUrl:Ljava/lang/String;

    invoke-static {v3}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_0

    .line 435
    const-string v3, "SendInviteToRecipient called with no URL"

    invoke-static {v3}, Lcom/glympse/platform/common/Helpers;->Log(Ljava/lang/String;)V

    move v3, v6

    .line 496
    :goto_0
    return v3

    .line 439
    :cond_0
    const/4 v2, 0x0

    .line 440
    .local v2, strSms:Ljava/lang/String;
    new-array v0, v7, [Z

    .line 442
    .local v0, afTruncated:[Z
    iget v3, p2, Lcom/glympse/platform/common/Recipient;->m_eRecipientType:I

    if-ne v8, v3, :cond_6

    .line 445
    iget-object v3, p2, Lcom/glympse/platform/common/Recipient;->m_strTo:Ljava/lang/String;

    invoke-static {v3}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_1

    .line 447
    const-string v3, "SendInviteToRecipient called with no phone number"

    invoke-static {v3}, Lcom/glympse/platform/common/Helpers;->Log(Ljava/lang/String;)V

    move v3, v6

    .line 448
    goto :goto_0

    .line 451
    :cond_1
    iget-boolean v3, p2, Lcom/glympse/platform/common/Recipient;->m_fIsTwitterNumber:Z

    if-eqz v3, :cond_3

    .line 453
    iget-object v3, p2, Lcom/glympse/platform/common/Recipient;->m_strRecipientUrl:Ljava/lang/String;

    iget-object v4, p1, Lcom/glympse/platform/common/Ticket;->m_strMessage:Ljava/lang/String;

    invoke-virtual {p0, v3, v4, v0}, Lcom/glympse/platform/common/PlatformBase;->FormatForTwitterSms(Ljava/lang/String;Ljava/lang/String;[Z)Ljava/lang/String;

    move-result-object v2

    .line 477
    :cond_2
    :goto_1
    if-nez v2, :cond_8

    move v3, v6

    .line 479
    goto :goto_0

    .line 455
    :cond_3
    iget-boolean v3, p2, Lcom/glympse/platform/common/Recipient;->m_fIsFacebookNumber:Z

    if-eqz v3, :cond_4

    .line 457
    iget-object v3, p2, Lcom/glympse/platform/common/Recipient;->m_strRecipientUrl:Ljava/lang/String;

    iget-object v4, p1, Lcom/glympse/platform/common/Ticket;->m_strMessage:Ljava/lang/String;

    invoke-virtual {p0, v3, v4, v0}, Lcom/glympse/platform/common/PlatformBase;->FormatForFacebookSms(Ljava/lang/String;Ljava/lang/String;[Z)Ljava/lang/String;

    move-result-object v2

    goto :goto_1

    .line 462
    :cond_4
    iget-object v3, p0, Lcom/glympse/platform/common/PlatformBase;->m_oUserList:Lcom/glympse/platform/common/UserList;

    invoke-virtual {v3}, Lcom/glympse/platform/common/UserList;->GetSelf()Lcom/glympse/platform/common/User;

    move-result-object v1

    .line 463
    .local v1, oUserSelf:Lcom/glympse/platform/common/User;
    if-nez v1, :cond_5

    const/4 v3, 0x0

    :goto_2
    iget-object v4, p2, Lcom/glympse/platform/common/Recipient;->m_strRecipientUrl:Ljava/lang/String;

    iget-object v5, p1, Lcom/glympse/platform/common/Ticket;->m_strMessage:Ljava/lang/String;

    invoke-virtual {p0, v3, v4, v5, v0}, Lcom/glympse/platform/common/PlatformBase;->FormatForSms(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Z)Ljava/lang/String;

    move-result-object v2

    .line 464
    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "SMS TEXT: "

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v3}, Lcom/glympse/platform/common/Helpers;->Log(Ljava/lang/String;)V

    goto :goto_1

    .line 463
    :cond_5
    iget-object v3, v1, Lcom/glympse/platform/common/User;->m_strDisplayName:Ljava/lang/String;

    goto :goto_2

    .line 467
    .end local v1           #oUserSelf:Lcom/glympse/platform/common/User;
    :cond_6
    iget v3, p2, Lcom/glympse/platform/common/Recipient;->m_eRecipientType:I

    if-ne v9, v3, :cond_7

    .line 469
    iget-object v3, p2, Lcom/glympse/platform/common/Recipient;->m_strRecipientUrl:Ljava/lang/String;

    iget-object v4, p1, Lcom/glympse/platform/common/Ticket;->m_strMessage:Ljava/lang/String;

    invoke-virtual {p0, v3, v4, v0}, Lcom/glympse/platform/common/PlatformBase;->FormatForTwitterApi(Ljava/lang/String;Ljava/lang/String;[Z)Ljava/lang/String;

    move-result-object v2

    goto :goto_1

    .line 471
    :cond_7
    iget v3, p2, Lcom/glympse/platform/common/Recipient;->m_eRecipientType:I

    if-ne v10, v3, :cond_2

    .line 473
    iget-object v3, p2, Lcom/glympse/platform/common/Recipient;->m_strRecipientUrl:Ljava/lang/String;

    iget-object v4, p1, Lcom/glympse/platform/common/Ticket;->m_strMessage:Ljava/lang/String;

    invoke-virtual {p0, v3, v4, v0}, Lcom/glympse/platform/common/PlatformBase;->FormatForFacebookApi(Ljava/lang/String;Ljava/lang/String;[Z)Ljava/lang/String;

    move-result-object v2

    goto :goto_1

    .line 482
    :cond_8
    iget v3, p2, Lcom/glympse/platform/common/Recipient;->m_eRecipientType:I

    if-ne v8, v3, :cond_a

    .line 484
    iget-object v3, p0, Lcom/glympse/platform/common/PlatformBase;->m_oJobQueue:Lcom/glympse/platform/common/JobQueue;

    new-instance v4, Lcom/glympse/platform/common/SendSmsJob;

    invoke-direct {v4, p2, v2}, Lcom/glympse/platform/common/SendSmsJob;-><init>(Lcom/glympse/platform/common/Recipient;Ljava/lang/String;)V

    invoke-virtual {v3, v4}, Lcom/glympse/platform/common/JobQueue;->AddJob(Lcom/glympse/platform/common/JobQueue$Job;)V

    :cond_9
    :goto_3
    move v3, v7

    .line 496
    goto/16 :goto_0

    .line 486
    :cond_a
    iget v3, p2, Lcom/glympse/platform/common/Recipient;->m_eRecipientType:I

    if-ne v9, v3, :cond_b

    .line 488
    iget-object v3, p0, Lcom/glympse/platform/common/PlatformBase;->m_oJobQueue:Lcom/glympse/platform/common/JobQueue;

    new-instance v4, Lcom/glympse/platform/common/TwitterJobs$PostJob;

    invoke-direct {v4, p2, v2}, Lcom/glympse/platform/common/TwitterJobs$PostJob;-><init>(Lcom/glympse/platform/common/Recipient;Ljava/lang/String;)V

    invoke-virtual {v3, v4}, Lcom/glympse/platform/common/JobQueue;->AddJob(Lcom/glympse/platform/common/JobQueue$Job;)V

    goto :goto_3

    .line 490
    :cond_b
    iget v3, p2, Lcom/glympse/platform/common/Recipient;->m_eRecipientType:I

    if-ne v10, v3, :cond_9

    .line 492
    iget-object v3, p0, Lcom/glympse/platform/common/PlatformBase;->m_oJobQueue:Lcom/glympse/platform/common/JobQueue;

    new-instance v4, Lcom/glympse/platform/common/FacebookJobs$PostJob;

    invoke-direct {v4, p1, p2, v2}, Lcom/glympse/platform/common/FacebookJobs$PostJob;-><init>(Lcom/glympse/platform/common/Ticket;Lcom/glympse/platform/common/Recipient;Ljava/lang/String;)V

    invoke-virtual {v3, v4}, Lcom/glympse/platform/common/JobQueue;->AddJob(Lcom/glympse/platform/common/JobQueue$Job;)V

    goto :goto_3
.end method

.method public SetActive(Z)V
    .locals 1
    .parameter "fActive"

    .prologue
    .line 102
    iget-boolean v0, p0, Lcom/glympse/platform/common/PlatformBase;->m_fActive:Z

    if-eq v0, p1, :cond_0

    .line 104
    iput-boolean p1, p0, Lcom/glympse/platform/common/PlatformBase;->m_fActive:Z

    .line 108
    invoke-virtual {p0}, Lcom/glympse/platform/common/PlatformBase;->OkToPost()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 110
    iget-object v0, p0, Lcom/glympse/platform/common/PlatformBase;->m_oServerPost:Lcom/glympse/platform/common/ServerPost;

    invoke-virtual {v0}, Lcom/glympse/platform/common/ServerPost;->DoPost()V

    .line 113
    :cond_0
    return-void
.end method

.method public SetBatteryForce()V
    .locals 1

    .prologue
    .line 118
    iget-boolean v0, p0, Lcom/glympse/platform/common/PlatformBase;->m_fBatteryGood:Z

    if-nez v0, :cond_0

    .line 120
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/glympse/platform/common/PlatformBase;->m_fBatteryForce:Z

    .line 125
    :cond_0
    invoke-virtual {p0}, Lcom/glympse/platform/common/PlatformBase;->OkToPost()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 127
    iget-object v0, p0, Lcom/glympse/platform/common/PlatformBase;->m_oServerPost:Lcom/glympse/platform/common/ServerPost;

    invoke-virtual {v0}, Lcom/glympse/platform/common/ServerPost;->DoPost()V

    .line 129
    :cond_1
    return-void
.end method

.method public ShouldStartLocationManager()Z
    .locals 1

    .prologue
    .line 153
    iget-boolean v0, p0, Lcom/glympse/platform/common/PlatformBase;->m_fBatteryGood:Z

    if-nez v0, :cond_0

    iget-boolean v0, p0, Lcom/glympse/platform/common/PlatformBase;->m_fBatteryForce:Z

    if-eqz v0, :cond_2

    :cond_0
    iget-boolean v0, p0, Lcom/glympse/platform/common/PlatformBase;->m_fActive:Z

    if-nez v0, :cond_1

    iget-object v0, p0, Lcom/glympse/platform/common/PlatformBase;->m_oSentTickets:Lcom/glympse/platform/common/SentTicketList;

    invoke-virtual {v0}, Lcom/glympse/platform/common/SentTicketList;->AnyActive()Z

    move-result v0

    if-eqz v0, :cond_2

    :cond_1
    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_2
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public SignIn()V
    .locals 3

    .prologue
    .line 237
    :try_start_0
    iget-boolean v1, p0, Lcom/glympse/platform/common/PlatformBase;->m_fSigninCalled:Z

    if-eqz v1, :cond_0

    .line 261
    :goto_0
    return-void

    .line 241
    :cond_0
    const/4 v1, 0x1

    iput-boolean v1, p0, Lcom/glympse/platform/common/PlatformBase;->m_fSigninCalled:Z

    .line 245
    invoke-static {}, Lcom/glympse/platform/Platform;->instance()Lcom/glympse/platform/Platform;

    move-result-object v1

    invoke-virtual {v1}, Lcom/glympse/platform/Platform;->ScanSmsInbox()V

    .line 248
    iget-object v1, p0, Lcom/glympse/platform/common/PlatformBase;->m_oLocManager:Lcom/glympse/platform/LocManager;

    invoke-virtual {v1}, Lcom/glympse/platform/LocManager;->Start()V

    .line 249
    iget-object v1, p0, Lcom/glympse/platform/common/PlatformBase;->m_oJobQueue:Lcom/glympse/platform/common/JobQueue;

    const/4 v2, 0x2

    invoke-virtual {v1, v2}, Lcom/glympse/platform/common/JobQueue;->Start(I)Z

    .line 250
    iget-object v1, p0, Lcom/glympse/platform/common/PlatformBase;->m_oServerPost:Lcom/glympse/platform/common/ServerPost;

    invoke-virtual {v1}, Lcom/glympse/platform/common/ServerPost;->Start()V

    .line 251
    iget-object v1, p0, Lcom/glympse/platform/common/PlatformBase;->m_oUserList:Lcom/glympse/platform/common/UserList;

    invoke-virtual {v1}, Lcom/glympse/platform/common/UserList;->Start()V

    .line 252
    iget-object v1, p0, Lcom/glympse/platform/common/PlatformBase;->m_oSentTickets:Lcom/glympse/platform/common/SentTicketList;

    invoke-virtual {v1}, Lcom/glympse/platform/common/SentTicketList;->Start()V

    .line 253
    iget-object v1, p0, Lcom/glympse/platform/common/PlatformBase;->m_oFavoriteList:Lcom/glympse/platform/common/FavoriteList;

    invoke-virtual {v1}, Lcom/glympse/platform/common/FavoriteList;->Start()V

    .line 254
    iget-object v1, p0, Lcom/glympse/platform/common/PlatformBase;->m_oPlaceList:Lcom/glympse/platform/common/PlaceList;

    invoke-virtual {v1}, Lcom/glympse/platform/common/PlaceList;->Start()V

    .line 255
    iget-object v1, p0, Lcom/glympse/platform/common/PlatformBase;->m_oMessageList:Lcom/glympse/platform/common/MessageList;

    invoke-virtual {v1}, Lcom/glympse/platform/common/MessageList;->Start()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 257
    :catch_0
    move-exception v1

    move-object v0, v1

    .line 259
    .local v0, e:Ljava/lang/Exception;
    invoke-static {v0}, Lcom/glympse/platform/common/Helpers;->Log(Ljava/lang/Throwable;)V

    goto :goto_0
.end method

.method public SignOut()V
    .locals 3

    .prologue
    .line 268
    :try_start_0
    iget-boolean v1, p0, Lcom/glympse/platform/common/PlatformBase;->m_fSigninCalled:Z

    if-eqz v1, :cond_0

    .line 270
    const/4 v1, 0x0

    iput-boolean v1, p0, Lcom/glympse/platform/common/PlatformBase;->m_fSigninCalled:Z

    .line 273
    iget-object v1, p0, Lcom/glympse/platform/common/PlatformBase;->m_oLocManager:Lcom/glympse/platform/LocManager;

    const/4 v2, 0x1

    invoke-virtual {v1, v2}, Lcom/glympse/platform/LocManager;->Stop(Z)V

    .line 274
    iget-object v1, p0, Lcom/glympse/platform/common/PlatformBase;->m_oServerPost:Lcom/glympse/platform/common/ServerPost;

    invoke-virtual {v1}, Lcom/glympse/platform/common/ServerPost;->Stop()V

    .line 277
    iget-object v1, p0, Lcom/glympse/platform/common/PlatformBase;->m_oJobQueue:Lcom/glympse/platform/common/JobQueue;

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Lcom/glympse/platform/common/JobQueue;->Stop(Z)V

    .line 278
    iget-object v1, p0, Lcom/glympse/platform/common/PlatformBase;->m_oUserList:Lcom/glympse/platform/common/UserList;

    invoke-virtual {v1}, Lcom/glympse/platform/common/UserList;->Stop()V

    .line 279
    iget-object v1, p0, Lcom/glympse/platform/common/PlatformBase;->m_oSentTickets:Lcom/glympse/platform/common/SentTicketList;

    invoke-virtual {v1}, Lcom/glympse/platform/common/SentTicketList;->Stop()V

    .line 280
    iget-object v1, p0, Lcom/glympse/platform/common/PlatformBase;->m_oFavoriteList:Lcom/glympse/platform/common/FavoriteList;

    invoke-virtual {v1}, Lcom/glympse/platform/common/FavoriteList;->Stop()V

    .line 281
    iget-object v1, p0, Lcom/glympse/platform/common/PlatformBase;->m_oPlaceList:Lcom/glympse/platform/common/PlaceList;

    invoke-virtual {v1}, Lcom/glympse/platform/common/PlaceList;->Stop()V

    .line 282
    iget-object v1, p0, Lcom/glympse/platform/common/PlatformBase;->m_oMessageList:Lcom/glympse/platform/common/MessageList;

    invoke-virtual {v1}, Lcom/glympse/platform/common/MessageList;->Stop()V

    .line 284
    const/4 v1, 0x0

    iput-boolean v1, p0, Lcom/glympse/platform/common/PlatformBase;->m_fInitalPacketReceived:Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 291
    :cond_0
    :goto_0
    return-void

    .line 287
    :catch_0
    move-exception v1

    move-object v0, v1

    .line 289
    .local v0, e:Ljava/lang/Exception;
    invoke-static {v0}, Lcom/glympse/platform/common/Helpers;->Log(Ljava/lang/Throwable;)V

    goto :goto_0
.end method

.method protected Start()V
    .locals 1

    .prologue
    .line 189
    new-instance v0, Lcom/glympse/platform/common/JobQueue;

    invoke-direct {v0}, Lcom/glympse/platform/common/JobQueue;-><init>()V

    iput-object v0, p0, Lcom/glympse/platform/common/PlatformBase;->m_oJobQueue:Lcom/glympse/platform/common/JobQueue;

    .line 190
    new-instance v0, Lcom/glympse/platform/common/ServerPost;

    invoke-direct {v0}, Lcom/glympse/platform/common/ServerPost;-><init>()V

    iput-object v0, p0, Lcom/glympse/platform/common/PlatformBase;->m_oServerPost:Lcom/glympse/platform/common/ServerPost;

    .line 191
    new-instance v0, Lcom/glympse/platform/LocManager;

    invoke-direct {v0}, Lcom/glympse/platform/LocManager;-><init>()V

    iput-object v0, p0, Lcom/glympse/platform/common/PlatformBase;->m_oLocManager:Lcom/glympse/platform/LocManager;

    .line 192
    new-instance v0, Lcom/glympse/platform/common/UserList;

    invoke-direct {v0}, Lcom/glympse/platform/common/UserList;-><init>()V

    iput-object v0, p0, Lcom/glympse/platform/common/PlatformBase;->m_oUserList:Lcom/glympse/platform/common/UserList;

    .line 193
    new-instance v0, Lcom/glympse/platform/common/SentTicketList;

    invoke-direct {v0}, Lcom/glympse/platform/common/SentTicketList;-><init>()V

    iput-object v0, p0, Lcom/glympse/platform/common/PlatformBase;->m_oSentTickets:Lcom/glympse/platform/common/SentTicketList;

    .line 194
    new-instance v0, Lcom/glympse/platform/common/FavoriteList;

    invoke-direct {v0}, Lcom/glympse/platform/common/FavoriteList;-><init>()V

    iput-object v0, p0, Lcom/glympse/platform/common/PlatformBase;->m_oFavoriteList:Lcom/glympse/platform/common/FavoriteList;

    .line 195
    new-instance v0, Lcom/glympse/platform/common/PlaceList;

    invoke-direct {v0}, Lcom/glympse/platform/common/PlaceList;-><init>()V

    iput-object v0, p0, Lcom/glympse/platform/common/PlatformBase;->m_oPlaceList:Lcom/glympse/platform/common/PlaceList;

    .line 196
    new-instance v0, Lcom/glympse/platform/common/MessageList;

    invoke-direct {v0}, Lcom/glympse/platform/common/MessageList;-><init>()V

    iput-object v0, p0, Lcom/glympse/platform/common/PlatformBase;->m_oMessageList:Lcom/glympse/platform/common/MessageList;

    .line 197
    return-void
.end method

.method public StartSearch(Ljava/lang/String;Lcom/glympse/platform/common/LocPoint;Lcom/glympse/platform/common/SearchResultsListener;)Z
    .locals 2
    .parameter "strSearch"
    .parameter "oLocPoint"
    .parameter "oSearchResultsListener"

    .prologue
    .line 381
    iget-object v0, p0, Lcom/glympse/platform/common/PlatformBase;->m_oJobQueue:Lcom/glympse/platform/common/JobQueue;

    new-instance v1, Lcom/glympse/platform/common/SearchJob;

    invoke-direct {v1, p1, p2, p3}, Lcom/glympse/platform/common/SearchJob;-><init>(Ljava/lang/String;Lcom/glympse/platform/common/LocPoint;Lcom/glympse/platform/common/SearchResultsListener;)V

    invoke-virtual {v0, v1}, Lcom/glympse/platform/common/JobQueue;->AddJob(Lcom/glympse/platform/common/JobQueue$Job;)V

    .line 383
    const/4 v0, 0x1

    return v0
.end method

.method public StartStopLocation()V
    .locals 2

    .prologue
    .line 160
    iget-boolean v0, p0, Lcom/glympse/platform/common/PlatformBase;->m_fSigninCalled:Z

    if-eqz v0, :cond_0

    .line 164
    invoke-virtual {p0}, Lcom/glympse/platform/common/PlatformBase;->ShouldStartLocationManager()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 166
    iget-object v0, p0, Lcom/glympse/platform/common/PlatformBase;->m_oLocManager:Lcom/glympse/platform/LocManager;

    invoke-virtual {v0}, Lcom/glympse/platform/LocManager;->Start()V

    .line 177
    :cond_0
    :goto_0
    return-void

    .line 174
    :cond_1
    iget-object v0, p0, Lcom/glympse/platform/common/PlatformBase;->m_oLocManager:Lcom/glympse/platform/LocManager;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/glympse/platform/LocManager;->Stop(Z)V

    goto :goto_0
.end method

.method public StartTwitterSignIn(Ljava/lang/String;Ljava/lang/String;Lcom/glympse/platform/common/TwitterJobs$SignInCallback;)Lcom/glympse/platform/common/TwitterJobs$SignInJob;
    .locals 2
    .parameter "strUsername"
    .parameter "strPassword"
    .parameter "oSignInCallback"

    .prologue
    .line 418
    new-instance v0, Lcom/glympse/platform/common/TwitterJobs$SignInJob;

    invoke-direct {v0, p1, p2, p3}, Lcom/glympse/platform/common/TwitterJobs$SignInJob;-><init>(Ljava/lang/String;Ljava/lang/String;Lcom/glympse/platform/common/TwitterJobs$SignInCallback;)V

    .line 419
    .local v0, oSignInJob:Lcom/glympse/platform/common/TwitterJobs$SignInJob;
    iget-object v1, p0, Lcom/glympse/platform/common/PlatformBase;->m_oJobQueue:Lcom/glympse/platform/common/JobQueue;

    invoke-virtual {v1, v0}, Lcom/glympse/platform/common/JobQueue;->AddJob(Lcom/glympse/platform/common/JobQueue$Job;)V

    .line 420
    return-object v0
.end method

.method protected Stop()V
    .locals 1

    .prologue
    const/4 v0, 0x0

    .line 202
    iput-object v0, p0, Lcom/glympse/platform/common/PlatformBase;->m_oLocManager:Lcom/glympse/platform/LocManager;

    .line 203
    iput-object v0, p0, Lcom/glympse/platform/common/PlatformBase;->m_oServerPost:Lcom/glympse/platform/common/ServerPost;

    .line 204
    iput-object v0, p0, Lcom/glympse/platform/common/PlatformBase;->m_oJobQueue:Lcom/glympse/platform/common/JobQueue;

    .line 205
    iput-object v0, p0, Lcom/glympse/platform/common/PlatformBase;->m_oUserList:Lcom/glympse/platform/common/UserList;

    .line 206
    iput-object v0, p0, Lcom/glympse/platform/common/PlatformBase;->m_oSentTickets:Lcom/glympse/platform/common/SentTicketList;

    .line 207
    iput-object v0, p0, Lcom/glympse/platform/common/PlatformBase;->m_oFavoriteList:Lcom/glympse/platform/common/FavoriteList;

    .line 208
    iput-object v0, p0, Lcom/glympse/platform/common/PlatformBase;->m_oPlaceList:Lcom/glympse/platform/common/PlaceList;

    .line 209
    iput-object v0, p0, Lcom/glympse/platform/common/PlatformBase;->m_oMessageList:Lcom/glympse/platform/common/MessageList;

    .line 210
    return-void
.end method

.method public WillMessageGetTruncated(Lcom/glympse/platform/common/Recipient;Ljava/lang/String;)Z
    .locals 6
    .parameter "oRecipient"
    .parameter "strMessage"

    .prologue
    const/16 v4, 0x1c

    const/4 v5, 0x0

    .line 389
    const/4 v2, 0x1

    new-array v0, v2, [Z

    .line 393
    .local v0, afTruncated:[Z
    const/4 v2, 0x3

    iget v3, p1, Lcom/glympse/platform/common/Recipient;->m_eRecipientType:I

    if-ne v2, v3, :cond_4

    .line 395
    iget-boolean v2, p1, Lcom/glympse/platform/common/Recipient;->m_fIsTwitterNumber:Z

    if-eqz v2, :cond_1

    .line 397
    const-string v2, "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

    invoke-static {v2, v5, v4}, Lcom/glympse/platform/common/Helpers;->SubstrEnd(Ljava/lang/String;II)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {p0, v2, p2, v0}, Lcom/glympse/platform/common/PlatformBase;->FormatForTwitterSms(Ljava/lang/String;Ljava/lang/String;[Z)Ljava/lang/String;

    .line 412
    :cond_0
    :goto_0
    aget-boolean v2, v0, v5

    return v2

    .line 401
    :cond_1
    iget-object v2, p0, Lcom/glympse/platform/common/PlatformBase;->m_oUserList:Lcom/glympse/platform/common/UserList;

    invoke-virtual {v2}, Lcom/glympse/platform/common/UserList;->GetSelf()Lcom/glympse/platform/common/User;

    move-result-object v1

    .line 402
    .local v1, oUserSelf:Lcom/glympse/platform/common/User;
    if-eqz v1, :cond_2

    iget-object v2, v1, Lcom/glympse/platform/common/User;->m_strDisplayName:Ljava/lang/String;

    invoke-static {v2}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_3

    .line 403
    :cond_2
    const-string v2, "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

    const/16 v3, 0xf

    invoke-static {v2, v5, v3}, Lcom/glympse/platform/common/Helpers;->SubstrEnd(Ljava/lang/String;II)Ljava/lang/String;

    move-result-object v2

    .line 404
    :goto_1
    const-string v3, "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

    const/16 v4, 0x20

    invoke-static {v3, v5, v4}, Lcom/glympse/platform/common/Helpers;->SubstrEnd(Ljava/lang/String;II)Ljava/lang/String;

    move-result-object v3

    .line 402
    invoke-virtual {p0, v2, v3, p2, v0}, Lcom/glympse/platform/common/PlatformBase;->FormatForSms(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Z)Ljava/lang/String;

    goto :goto_0

    .line 403
    :cond_3
    iget-object v2, v1, Lcom/glympse/platform/common/User;->m_strDisplayName:Ljava/lang/String;

    goto :goto_1

    .line 407
    .end local v1           #oUserSelf:Lcom/glympse/platform/common/User;
    :cond_4
    const/4 v2, 0x4

    iget v3, p1, Lcom/glympse/platform/common/Recipient;->m_eRecipientType:I

    if-ne v2, v3, :cond_0

    .line 409
    const-string v2, "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

    invoke-static {v2, v5, v4}, Lcom/glympse/platform/common/Helpers;->SubstrEnd(Ljava/lang/String;II)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {p0, v2, p2, v0}, Lcom/glympse/platform/common/PlatformBase;->FormatForTwitterApi(Ljava/lang/String;Ljava/lang/String;[Z)Ljava/lang/String;

    goto :goto_0
.end method
